package com.atguigu.spzx.manager.mapper;

import com.atguigu.spyx.model.common.com.atguigu.spyx.model.entity.sys.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LT
 * @create 2023-11-03-19:09
 */
@Mapper
public interface SysRoleMapper {

    List<SysRole> getPage(@Param("keyword") String keyword);

    void deleteById(@Param("id") Integer id);

    SysRole GetRoleById(@Param("id") Integer id);

    void UpdateRoleById(SysRole role);

    void saveRole(SysRole role);

    List<SysRole> getRole(@Param("userId") Long id);
}
